<?php
	class loginFormpage
	{
		public $page;
		
		public function __construct()
		{
			$this->page['title'] = "Login";
			unset($_SESSION['user']);
			$this->page['content'] = "<div id='loginPage'>
					<form method='post' name='login' action='?page=login'>
						<p>".$_SESSION['translation'][$_SESSION['lang']]["username"]." <input type='text' name='name' /></p>
						<p>".$_SESSION['translation'][$_SESSION['lang']]["password"]." <input type='password' name='password' /></p>
						<p><a href='javascript:document.login.submit();' class='button'>".$_SESSION['translation'][$_SESSION['lang']]["login"]." </a> <a href='?page=register' class='button'>".$_SESSION['translation'][$_SESSION['lang']]["register"]."</a></p>
					</form>
				</div>";
		}
		
		public function getPage()
		{
			$page = $this->page;
			require_once("templates/ContentOnly.php");
		}
	}
?>